INP Function ---------------------------------------------------------------------------- Action Returns the byte read from a hardware I-O port. Syntax INP( port) Remarks The INP function complements the OUT statement, which sends a byte to a hardware I-O port. The argument port identifies the hardware I-O port from which to read the byte. It must be a numeric expression with an integer value between 0 and 65,535, inclusive. The INP function and the OUT statement give a BASIC program direct control over the system hardware through the I-O ports. INP and OUT must be used carefully because they directly manipulate the system hardware. Note The INP function is not available in OS-2 protected mode. See Also OUT, WAIT Example See the OUT statement programming example, which uses the INP function.